#ifndef __SERIAL_H__
#define	__SERIAL_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <assert.h>
#include "file.h"
#include "debug.h"
#include "serial.h"
#include "serial-ops.h"
#include "analysis.h"
#include "convert.h"
#include "circure-queue.h"
#include "tilt-imu.h"

//#define PC_DEBUG

#define TRUE	1
#define FLASE	0


extern char appkey[32];			/* appkey */
extern char devicecode[32];	/* device code */
extern struct queue queue_ac;
extern struct queue queue_bd;

#define msleep(ms) usleep(ms*1000)




#ifdef __cplusplus
}
#endif

#endif /* __SERIAL_H__ */
